package com.ganzalang.gmall.designpatterns.builder;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @description: 不适用构造器模式
 * @author: ganzalang
 */
@Slf4j
public class WithoutBuilderPatternDemo {

    public static void main(String[] args) {
        Product product = new Product();
        product.setField1("value1");
        product.setField2("value2");
        product.setField3("value3");
        log.info("product: {}", product);
    }

    @Data
    public static class Product {
        private String field1;
        private String field2;
        private String field3;
    }
}
